package model;

public class Course {
    private String courseNo;
    private String name;
    private double credit;

    public Course(String courseNo, String name, double credit) {
        this.courseNo = courseNo;
        this.name = name;
        this.credit = credit;
    }

    public String getCourseNo() {
        return courseNo;
    }

    public String getName() {
        return name;
    }

    public double getCredit() {
        return credit;
    }

    @Override
    public String toString() {
        return courseNo + " - " + name + " (" + credit + "学分)";
    }
}
